import { createRouter,createWebHistory,RouteRecordRaw,createWebHashHistory,createMemoryHistory } from "vue-router";
import index1 from './index/index1.ts'
import index2 from './index/index2.ts'
import index3 from './index/index3.ts'
import ces from './index/ces.ts'

const GodzRoutes:Array<RouteRecordRaw>=[
    {
        path:"/HelloGodz",
        component: () => import('../components/HelloWorld.vue')
    },
    {
        // 登录页
        path: '/',
        alias:'/index',//副路径
        name: 'login',
        component: () => import('../components/login.vue')
    },
    {
        // 主页面
        path: '/main',
        name: 'main',
        component: () => import('../components/main/index.vue'),
        children:[
            ...index1,...index2,...index3,...ces
        ]
    },
]
const router=createRouter({
    history:createWebHistory(),
    routes:GodzRoutes
})

export default router